package org.com.cis.cf.util;

import java.util.Comparator;

@SuppressWarnings("rawtypes")
public class SortTrainByPredicted implements Comparator {
	
	public int compare(Object o1, Object o2) {
		TrainPoint t1 = (TrainPoint) o1;
		TrainPoint t2 = (TrainPoint) o2;
		if (t1.predictedRating < t2.predictedRating)
			return 1;
		else
			return -1;
	}
}